import request from '@/utils/request.js'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'POST',
    data
  })
}

export function getUser() {
  return request({
    url: '/user'
  })
}

// 获取收藏列表
export function getfavorites() {
  return request({
    url: '/user/favorites'
  })
}

export function getrent() {
  return request({
    url: '/user/houses'
  })
}

